package com.j.thetabk;

import android.mtp.MtpConstants;
import android.os.Environment;

import java.io.Serializable;

/**
 * Created by jhanbin on 1/10/2017.
 */
public class TransferSetup implements Serializable
{
    private boolean bMove=false;
    private boolean bImage=false;
    private boolean bVideo=false;
    private String savePath= Environment.getExternalStorageDirectory().getPath();
//    private MtpDevice mtpDevice=null;
    private String bkFolder=null;


    public TransferSetup(boolean bMove, boolean bImage, boolean bVideo, String savePath, String bkFolder) {
        this.bMove = bMove;
        this.bImage = bImage;
        this.bVideo = bVideo;
        this.savePath = savePath;
//        this.mtpDevice = mtpDevice;
        this.bkFolder=bkFolder;
    }

    public String getBkFolder() {
        return bkFolder;
    }

    public void setBkFolder(String bkFolder) {
        this.bkFolder = bkFolder;
    }

    public int[] ToSelect()
    {
        if(bImage)
        {
            if(bVideo)
                return new int[]{MtpConstants.FORMAT_EXIF_JPEG, MtpConstants.FORMAT_MP4_CONTAINER, MtpConstants.FORMAT_UNDEFINED_VIDEO};
            return new int[]{MtpConstants.FORMAT_EXIF_JPEG};
        }

        if(bVideo)
            return new int[]{MtpConstants.FORMAT_MP4_CONTAINER, MtpConstants.FORMAT_UNDEFINED_VIDEO};
        return null;
    }

    public boolean isbMove() {
        return bMove;
    }

    public void setbMove(boolean bMove) {
        this.bMove = bMove;
    }

    public boolean isbImage() {
        return bImage;
    }

    public void setbImage(boolean bImage) {
        this.bImage = bImage;
    }

    public boolean isbVideo() {
        return bVideo;
    }

    public void setbVideo(boolean bVideo) {
        this.bVideo = bVideo;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }
//
//    public MtpDevice getMtpDevice() {
//        return mtpDevice;
//    }
//
//    public void setMtpDevice(MtpDevice mtpDevice) {
//        this.mtpDevice = mtpDevice;
//    }
}

